package cn.jsl.feign;

import cn.jsl.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * value的值就是需要调用服务的服务名 在application name里面
 */
@FeignClient(value = "user-service")
public interface UserFeign {

    @GetMapping("/getUserById/{id}")
    User getUserById(@PathVariable Long id);
}
